{**
 * index.tpl
 $lastday = mktime(0, 0, 0, 3, 0, 2000);
echo strftime("Last day in Feb 2000 is: %d", $lastday);
 *
 * Copyright (c) 2003-2012 John Willinsky
 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
 *
 * Journal index page.
 *
 * $Id$
 *}
{strip}
{assign var="pageTitleTranslated" value=$siteTitle}

{include file="common/header.tpl"}

{/strip}

{if $journalDescription}
	<div>{$journalDescription}</div>
{/if}


{if $homepageImage}
<br />
<div id="homepageImage"><img src="{$publicFilesDir}/{$homepageImage.uploadName|escape:"url"}" width="{$homepageImage.width|escape}" height="{$homepageImage.height|escape}" {if $homepageImageAltText != ''}alt="{$homepageImageAltText|escape}"{else}alt="{translate key="common.journalHomepageImage.altText"}"{/if} /></div>
{/if}

{if $additionalHomeContent}
<br />
{$additionalHomeContent}
{/if}


<form method="post" target="_blank" id="formsubmit"  action="{$newurl}" >

<strong>S&#7893; S&#225;ch: </strong>
<strong>{$Sec_Title}</strong>
<br>

<strong>N&#259;m l&#224;m vi&#7879;c </strong>
{assign var=thisyear value=$smarty.now|date_format:"%Y"}
{assign var=thisday value=$smarty.now|date_format:"%e"}
{assign var=endYear value=$thisyear+20}

<select name = "xNam">
{section name=yearValue start=$thisyear-20 loop=$endYear step=1}
{if $smarty.section.yearValue.index == $thisyear}
	<option selected = "selected">{$smarty.section.yearValue.index}</option>
{else}
	<option>{$smarty.section.yearValue.index}</option>
{/if}
{/section}
</select>
<br>


{assign var=dateExpire value=$smarty.now}
{assign var=yearOffsetFuture value= $thisyear+20}
{assign var=yearOffsetPast value= $thisyear-20}


<table>
<tr valign="top">
	<td class="label">Tu Ngay: </td>
	<td class="value">
		{if $dateExpire != null}
			{html_select_date prefix="dateExpire1" all_extra="class=\"selectMenu\""  day_extra= 1  display_years = 0  time="$dateExpire"}
		{else}
			{html_select_date prefix="dateExpire1" all_extra="class=\"selectMenu\"" day_extra = 1 display_years = 0  time="-00-00"}
		{/if}
		<input type="hidden" name="dateExpireHour" value="23" />
		<input type="hidden" name="dateExpireMinute" value="59" />
		<input type="hidden" name="dateExpireSecond" value="59" />
		<br />
	</td>
</tr>

<tr valign="top">
	<td class="label">Den Ngay: </td>
	<td class="value">
		{if $dateExpire != null}
			{html_select_date prefix="dateExpire2" all_extra="class=\"selectMenu\"" display_years = 0 time="$dateExpire"}
		{else}
			{html_select_date prefix="dateExpire2" all_extra="class=\"selectMenu\"" display_years = 0  time="-00-00"}
		{/if}
		<input type="hidden" name="dateExpireHour" value="23" />
		<input type="hidden" name="dateExpireMinute" value="59" />
		<input type="hidden" name="dateExpireSecond" value="59" />
		<br />
	</td>
</tr>

</table>


<table class="data" width="100%">
	<tr>
	</tr>	

	<tr valign="top">	
		<td width="20%"  align="right"  class="label">	<strong>Tai khoan:</strong></td>
		<td width="80%" class="value"><select name="matk" id="matk" size="1" class="selectMenu">{html_options options=$sectionOptions selected=$sectionId}</select></td>
	</tr>
</table>



{if $SS_SecDetail=="SS_TK"}

<table>
	<tr>
	<td><input type="radio" name="ChiTiet" value="1" checked="checked"> </td>
	<td><label for="ChiTiet">S&#7893; c&#225;i ta&#236; kho&#7843;n </label></td>
	</tr>
	<tr>

	<td><input type="radio" name="ChiTiet" value="2" >
	<td><label for="ChiTiet">S&#7893; chi ti&#7871;t ta&#236; kho&#7843;n</label>
	</tr>

	<tr>
	<td><input type="radio" name="ChiTiet" value="3" >
	<td><label for="ChiTietN">S&#7893; qu&#7929;</label>
	</tr>
	<tr>
	<td><input type="radio" name="ChiTiet" value="CTG" >
	<td><label for="ChiTiet">B&#7843;ng k&#234; ch&#7913;ng t&#7915;</label>
	</tr>
	<tr>
	</tr>
	
	<tr>
		<td colspan="2"><input type="button" id="formsubmit"  value="Th&#7921;c hi&#7879;n" class="button" /></td>
	</tr>
</table>

		

{elseif $CN_SecDetail=="CN_BANHANGCNO"}
<table>
	<tr>
	<td><input type="radio" name="ChiTiet" value="1" checked="checked"> </td>
	<td><label for="ChiTiet">Ho&#225; &#273;&#417;n b&#225;n h&#224;ng</label></td>
	</tr>

	<tr>
	<td><input type="radio" name="ChiTiet" value="2" >
	<td><label for="ChiTiet">Ho&#225; &#273;&#417;n d&#7883;ch v&#7909; ph&#7843;i thu</label>
	</tr>

	<tr>
	<td><input type="radio" name="ChiTiet" value="3" >
	<td><label for="ChiTietN">B&#249; tr&#7915; c&#244;ng n&#7907;</label>
	</tr>
	<tr>
	<td><input type="radio" name="ChiTiet" value="4" >
	<td><label for="ChiTiet">Phi&#7871;u nh&#7853;p h&#224;ng ho&#225; b&#7883; tr&#7843; l&#7841;i</label>
	</tr>

	<tr>
	<td><input type="radio" name="ChiTiet" value="5" >
	<td><label for="ChiTietN">Ho&#225; &#273;&#417;n ki&#234;m v&#7853;n chuy&#7875;n n&#7897;i b&#7897;</label>
	</tr>
	<tr>
	<td><input type="radio" name="ChiTiet" value="6" >
	<td><label for="ChiTiet">Ho&#225; &#273;&#417;n xu&#7845;t kh&#7849;u</label>
	</tr>

	<tr>
	</tr>
	
	<tr>
		<td colspan="2"><input type="submit" id="formsubmit"  value="Th&#7921;c hi&#7879;n" class="button" /></td>
	</tr>
</table>



{elseif $CN_SecDetail=="CN_MUAHANGCNO"}
<table>
	<tr>
	<td><input type="radio" name="ChiTiet" value="1" checked="checked"> </td>
	<td><label for="ChiTiet">Phi&#7871;u nh&#7853;p mua</label></td>
	</tr>

	<tr>
	<td><input type="radio" name="ChiTiet" value="2" >
	<td><label for="ChiTiet">Phi&#7871;u nh&#7853;p kh&#7849;u</label>
	</tr>

	<tr>
	<td><input type="radio" name="ChiTiet" value="3" >
	<td><label for="ChiTietN">Phi&#234;u nh&#7853;p chi ph&#237; mua h&#224;ng</label>
	</tr>
	<tr>
	<td><input type="radio" name="ChiTiet" value="4" >
	<td><label for="ChiTiet">Phi&#7871;u thanh to&#225;n t&#7841;m &#7913;ng</label>
	</tr>

	<tr>
	<td><input type="radio" name="ChiTiet" value="5" >
	<td><label for="ChiTietN">Phi&#7871;u nh&#7853;p xu&#7845;t th&#7859;ng</label>
	</tr>
	<tr>
	<td><input type="radio" name="ChiTiet" value="6" >
	<td><label for="ChiTiet">Phi&#7871;u xu&#7845;t tr&#7843; l&#7841;i nh&#224; cung c&#7845;p</label>
	</tr>

	<tr>
	</tr>
	
	<tr>
		<td colspan="2"><input type="submit" id="formsubmit"  value="Th&#7921;c hi&#7879;n" class="button" /></td>
	</tr>
</table>

{/if}
</form>


{if $enableAnnouncementsHomepage}
{* Display announcements *}
<div id="announcementsHome">
	<h3>{translate key="announcement.announcementsHome"}</h3>
	{include file="announcement/list.tpl"}	
	<table class="announcementsMore">
		<tr>
			<td><a href="{url page="announcement"}">{translate key="announcement.moreAnnouncements"}</a></td>
		</tr>
	</table>
</div>
{/if}

{if $issue && $currentJournal->getSetting('publishingMode') != $smarty.const.PUBLISHING_MODE_NONE}
	{* Display the table of contents or cover page of the current issue. *}
	<br />
	<h3>{$issue->getIssueIdentification()|strip_unsafe_html|nl2br}</h3>
	{include file="issue/view.tpl"}
{/if}
{include file="common/footer.tpl"}




